
/**
 * jims
 */
package com.jims.master.modules.operation.entity;

import org.hibernate.validator.constraints.Length;

import com.jims.master.common.persistence.DataEntity;

import java.beans.Transient;

/**
 * Entity
 * @author DT
 * @version 2017-04-06
 */
public class OperationRoom extends DataEntity<OperationRoom> {
	
	private static final long serialVersionUID = 1L;
	private String roomNo;		// 手术间号
	private String deptId;		// 所属手术室
	private String location;		// 位置
	private String status;		// 状态
	private String deptName;	//手术室名称
	@Transient
	public String getDeptName() {
		return deptName;
	}
	@Transient
	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public OperationRoom() {
		super();
	}

	public OperationRoom(String id){
		super(id);
	}

	@Length(min=1, max=3, message="手术间号长度必须介于 1 和 3 之间")
	public String getRoomNo() {
		return roomNo;
	}

	public void setRoomNo(String roomNo) {
		this.roomNo = roomNo;
	}
	
	@Length(min=1, max=64, message="所属手术室长度必须介于 1 和 64 之间")
	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}
	
	@Length(min=0, max=200, message="位置长度必须介于 0 和 200 之间")
	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	

}